﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ServidorGestionClientes
{
    public class Consumo
    {
        private int kmRecorrido;
        private DateTime fecha;
        private long consumoPlata;

        public int KmRecorrido
        {
            get { return kmRecorrido; }
            set { kmRecorrido = value; }
        }

        public long ConsumoPlata
        {
            get { return consumoPlata; }
            set { consumoPlata = value; }
        }

        public Consumo(int kmRec, long cons, DateTime fech)
        {
            consumoPlata = cons;
            kmRecorrido = kmRec;
            fecha = fech;
        }

        public override string ToString()
        {
            string res = fecha.ToString() + "@" + kmRecorrido + "@" + consumoPlata;

            return res;
        }
    }
}
